building Class Reference

#include <building.h>

List of all members.

Public Member Functions

 building ()
 building (int i, int l, char *m, int t, int s, int x, int z)
void destroyBuilding ()
void decreaseLife (int l)
void newBuilding ()


Detailed Description

Building class. Creates the building, manages its health, and destroys the building.

Constructor & Destructor Documentation

building::building (  ) 

Default constructor.

building::building ( int  i,
int  l,
char *  m,
int  t,
int  s,
int  x,
int  z 
)

Constructor. Will create the building in the game world.

Parameters:
object id, life, model file name, texture id, size, x and z coordinates.


Member Function Documentation

void building::decreaseLife ( int  l  ) 

Decriments the building's life by specified amount, and will destroy the building if life reaches zero.

Parameters:
Amount to decrease life by.

void building::destroyBuilding (  ) 

Removes the building frin the game world.

void building::newBuilding (  ) 

Places the building in the game world.


The documentation for this class was generated from the following file:

Generated on Thu Apr 30 10:32:57 2009 for Metal vs Magic by  doxygen 1.5.8